import asyncComponent from '../asyncComponent' // 按需引入
const Home = asyncComponent(() => import('@/views/home/index.jsx'));
const Hooks = asyncComponent(() => import('@/views/hooks/index.jsx'));


const routes = [
  {
    path: '/',
    component: Home,
    meta: {
      title: 'home页'
    }
  },
  {
    path: '/Hooks',
    component: Hooks,
    meta: {
      title: 'Hooks页'
    }
  }
]

export default routes